package org.eiahe.hr.salary.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.core.validate.AddGroup;
import org.ehe.common.core.validate.EditGroup;
import org.ehe.common.core.xss.Xss;
import org.ehe.common.mybatis.core.domain.BaseEntity;
import org.eiahe.hr.salary.domain.SalaryNotification;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 薪资通知业务对象 hr_salary_notification
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SalaryNotification.class, reverseConvertGenerate = false)
public class SalaryNotificationBo extends BaseEntity {

    /**
     * 通知ID
     */
    @NotNull(message = "通知ID不能为空", groups = { EditGroup.class })
    private Long notificationId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeNo;

    /**
     * 员工姓名
     */
    @NotBlank(message = "员工姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeName;

    /**
     * 部门
     */
    private String department;

    /**
     * 年月(yyyyMM格式)
     */
    @NotBlank(message = "年月不能为空", groups = { AddGroup.class, EditGroup.class })
    private String yearMonth;

    /**
     * 应发工资
     */
    private BigDecimal grossSalary;

    /**
     * 实发工资
     */
    private BigDecimal netSalary;

    /**
     * 通知状态(0未发送 1已发送 2已查看)
     */
    private String notificationStatus;

    /**
     * 发送时间
     */
    private Date sendTime;

    /**
     * 查看时间
     */
    private Date viewTime;

    /**
     * 通知方式(1系统消息 2邮件 3短信)
     */
    private String notificationMethod;

    /**
     * 状态(0正常 1封存)
     */
    private String status;

    /**
     * 备注
     */
    @Xss(message = "备注不能包含脚本字符")
    private String remark;
}